<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->resource('unit', UnitController::class);
    $router->resource('exhibitor-information', ExhibitorInformationController::class);
    $router->resource('download-zone', DownloadZoneController::class);
    $router->resource('journal-content', JournalContentController::class);
    $router->resource('main-business', MainBusinessController::class);
    $router->resource('safety_agreement', SafetyAgreementController::class);
    $router->resource('exhibitor-messages', ExhibitorMessageController::class);


    $router->resource('certificates', CertificateController::class);
    $router->resource('message-process-counts', MessageProcessCountController::class);
    $router->resource('exhibitor-message-tasks', ExhibitorMessageTaskController::class);

    $router->resource('exhibitor-message-task-expires', ExhibitorMessageTaskExpireController::class);

    $router->resource('invoice-attachments', InvoiceAttachmentController::class);

    $router->resource('sales-personnel-companies', SalesPersonnelCompanyController::class);


    $router->get('/exhibitor-information/select/sales', 'ExhibitorInformationController@activityList');

});
